package com.foreknow.dao;

import com.foreknow.model.Guestbook;
import org.apache.commons.beanutils.converters.SqlDateConverter;

import java.sql.SQLException;
import java.util.List;

/**
 * 接口
 * 在接口中要声明对Guestbook Bean的操作
 */
public interface GuestbookDao {
    /**
     * 添加留言信息
     * @param guestbook
     * @return
     * @throws SQLException
     */
    public boolean addMessage(Guestbook guestbook)throws SQLException;

    /**
     * 查询所有留言信息
     * @return
     * @throws SQLException
     */
    public List<Object> getQueryAll()throws SQLException;
    public boolean deleteById(Integer id);
    public boolean changeMessage(Guestbook guestbook);
    public List<Object> getQueryById(Integer id);
}
